﻿@using Microsoft.Web.Mvc
@model TeamCityMonitor.Models.Notification

@{
    ViewBag.Title = "Details";
    Layout = "../Admin/Layout.cshtml";
}

<h2 class="center">Notifications</h2>

<fieldset>
    <legend>Notification</legend>
    
    <div class="display">
        <div class="titleDisplay">
            @Html.DisplayFor(model => model.Title)
        </div>
    
        <div class="notificationDisplay">
            @if(String.IsNullOrEmpty(@Model.ImageUrl) == false )
            {
                @Html.Image(@Model.ImageUrl, "");
            }
        </div>

        <div class="footerDisplay">
            @Html.DisplayFor(model => model.Text)
        </div>
    </div>

</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
